package com.xiangdao.service;

import com.xiangdao.dao.PostSecondDao;
import com.xiangdao.model.PostSecond;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class PostSecondService {
    @Autowired
    PostSecondDao postSecondDao;

    public int addPostSecond(PostSecondDao postSecondDao) {
        return postSecondDao.addPostSecond(postSecondDao);
    }

    public ArrayList<PostSecond> findAllPostSecond(){
        return postSecondDao.findAllPostSecond();
    }
}
